package com.m3958.firstgwt.client.place;

import com.m3958.firstgwt.client.MyPlace;
import com.m3958.firstgwt.client.types.ViewNameEnum;


public class XinjianEditPlace extends MyPlace{
	
	private String siteId;
	private String xjcatId;
	private String xinjianId;
	
	public XinjianEditPlace(String allParams){
		String[] ss = allParams.split(",");
		this.siteId = ss[0];
		if(ss.length > 1)this.xjcatId = ss[1];
		if(ss.length > 2)this.xinjianId = ss[2];
	}
	
	public XinjianEditPlace(String siteId,String xjcatId,String xinjianId){
		this.siteId = siteId;
		this.xjcatId = xjcatId;
		this.xinjianId = xinjianId;
	}


	@Override
	public String getToken() {
		return ViewNameEnum.ARTICLE_EDIT.toString().toLowerCase() + "/" + xjcatId + "," + xinjianId;
	}

	public void setSiteId(String siteId) {
		this.siteId = siteId;
	}

	public String getSiteId() {
		return siteId;
	}

	public void setXinjianId(String xinjianId) {
		this.xinjianId = xinjianId;
	}

	public String getXinjianId() {
		return xinjianId;
	}

	public void setXjcatId(String xjcatId) {
		this.xjcatId = xjcatId;
	}

	public String getXjcatId() {
		return xjcatId;
	}
	
}
